package cn.sharp.bbs.service;

import cn.sharp.bbs.entity.BO.ScoreEntity;

import java.util.List;

/**
 * @className: ScoreService
 * @description: 积分相关服务类
 * @author: 王晓崧
 * @date: 2022/7/10
 **/
public interface ScoreService {

    void unlockContent(Long u_id, Long postID);

    void completeReward(ScoreEntity scoreEntity, Long u_id);

    void rewardPost(Long u_id, ScoreEntity scoreEntity);

    boolean checkOwner(Long u_id, Long postID);

    boolean checkUnlock(Long u_id, Long postID);

    boolean checkCompleted(Long postID);

    boolean checkIsEnough(Long u_id, Long postID);

    boolean checkIsEnough(Long u_id, Integer rewardNum);

    ScoreEntity getIntegralContent(Long postID, Long u_id);

    List<ScoreEntity> getRewardList(Long postID);

    Boolean checkHasCont(Long postID);
}
